<?php
    
    /* 用户信息更新处理页
     * @param  uId更新条件
     * @paradm uPass email sex birthday book movie statement 传递的更新数据
     *  */
    header("Content-type:text/html;charset=utf-8");
    require_once '../inc/user.php';
    
    $message="";
    $rs=0;
    
    if (isset($_POST["uId"])) 
    {
        $uId=$_POST["uId"];
        $uName=$_POST["uName"];
        $email=$_POST["email"];
        $uPass=$_POST["uPass"];
        $sex=$_POST["sex"];
        $birthday=$_POST["birthday"];
        $book=$_POST["book"];
        $movie=$_POST["movie"];
        $statement=$_POST["statement"];
        
            $result=updateUser($uId, $uName, $email, $uPass, $sex, $birthday, $book, $movie, $statement);
            echo "<script language='JavaScript'>;alert('更新信息成功');window.location.href='../style/perDocument.php';</script>";
            /* header("location:../style/errorNew.php?message='更新信息成功'"); */
            return;
            
  
    }
    else 
    {
        $message="用户id为空，如有需要，请联系工作人员";
    }
    header("location:../style/errorNew.php?message=$message");
    
?>